package com.itheima.d12_api_integer1;

public class Test {
    public static void main(String[] args) {
        //调用方法
provideInfo(Constant.BOY);

provideInfo(Constant.GIRL);
    }
    public static void provideInfo(Constant a){
        switch (a){
            case BOY:
               System.out.println("姓名: "+Constant.BOY.getName()+",年龄:"+Constant.BOY.getAge()+",性别:"+Constant.BOY.getSex());
                break;
            case GIRL:
               System.out.println("姓名: "+Constant.GIRL.getName()+",年龄:"+Constant.GIRL.getAge()+",性别:"+Constant.GIRL.getSex());
                break;
        }
    }
}
